package com.hollowlatte.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hollowlatte.manage.entity.RolePerms;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Hollow Latte
 * @since 2021-04-27
 */
@Repository
public interface RolePermsMapper extends BaseMapper<RolePerms> {
    List<RolePerms> selectByRoleId(Long roleId);

    List<RolePerms> selectByPermsId(Long permsId);

    RolePerms selectByRoleIdAndPermsId(Long roleId, Long permsId);

    int deleteByRoleId(Long roleId);

    int deleteByRoleIdAndPermsId(Long roleId, Long permsId);
}
